projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
182c909
)
Use -ffloat-store on i386.
author
Bernd Zeimetz
<bernd@bzed.de>
Wed, 5 May 2010 16:29:21 +0000
(18:29 +0200)
committer
Bernd Zeimetz
<bernd@bzed.de>
Wed, 5 May 2010 22:31:12 +0000
(
00:31
+0200)
debian/rules
patch
|
blob
|
history
diff --git
a/debian/rules
b/debian/rules
index 0f0dcbcdb854160ffcdebbedf74b207f643f1bf8..056816abad0561f1edd568abd6aaf1469898a417 100755
(executable)
--- a/
debian/rules
+++ b/
debian/rules
@@
-18,6
+18,13
@@
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
else
CFLAGS += -O2
endif
+
+# Extended precision on i386 results in weird bugs, so we build
+# with -ffloat-store.
+ifeq (i386,$(strip $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)))
+CFLAGS += -ffloat-store
+endif
+
LDFLAGS += -Wl,-z,defs
CONFENV = LDFLAGS="$(LDFLAGS)" CFLAGS="$(CFLAGS)"